package test;

import dao.StaffsDao;
import dao.impl.StaffsDaoImpl4jdbc;
import entity.Staffs;

import java.util.List;

/**
 * 查询全部的测试
 *
 * @Author lzp
 * @Date 2024-03-06
 */
public class test01 {
    public static void main(String[] args) {
        StaffsDao staffsDao = new StaffsDaoImpl4jdbc();

        List<Staffs> list = staffsDao.selectAll();
        for (Staffs p: list) {
            System.out.println( p.getId()+"  "+p.getName()+ "  "
                    + p.getAge()+"  "+p.getPhone()+"  "+p.getAddTime()+"  "+p.getUpdateTime());
        }
    }
}
